player1

  • function
 

Informs Bookshelf.js that the player1 property will be a Player model with an id that matches the player1Id specified in the query.

team.player1()

Informs Bookshelf.js that the player1 property will be a Player model with an id that matches the player1Id specified in the query.